export const SCOPE = "snsapi_userinfo";
// export const APP_ID = process.env.NODE_ENV_STATUS === "test" ? "wxf9d4dada400f5ce9" : "wxa25549b952d4e61b";
// export const API_BASE_URL =
//   process.env.NODE_ENV_STATUS === "test" ? "http://testxsd.jluomi.com" : "http://xsd.jluomi.com";

// export const APP_ID = "wxa25549b952d4e61b";
// export const API_BASE_URL = "http://xsd.jluomi.com";
// export const API_BASE_URL = "http://120.24.228.246";

//test
export const APP_ID = "wxf9d4dada400f5ce9";
// export const API_BASE_URL = "http://testxsd.jluomi.com";
// export const API_BASE_URL = "http://39.108.142.66";

// 开发环境URL
const DEV_URL = 'http://111.33.116.186:8082'
// 生产环境URL
const PROD_URL = 'http://111.33.116.186:8082'

// 根据配置选择不同的URL
export const API_BASE_URL = (function () {
  switch (process.env.VUE_APP_ENV) {
    case 'dev':
      return DEV_URL
    case 'prod':
      return PROD_URL
  }
})()
